//
//  GolfFriendViewController.h
//  GolfFriend
//
//  Created by vescky on 13-11-30.
//  Copyright (c) 2013年 vescky.org. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol GolfFriendViewDelegate <NSObject>

- (void)refreshContentDidFinish;
- (void)loadMoreContentDidFinish;
- (void)didReachTheEndingPage;//到达最后一页
- (void)addButtonPressed;

- (void)circleCellButtonPressed:(id)sender withObject:(id)ccVo;

@end

@interface GolfFriendViewController : UIViewController <UITableViewDataSource,UITableViewDelegate> {
    IBOutlet UITableView *tbView;
    IBOutlet UIView *noDataView;
    IBOutlet UILabel *labelNoData,*labelWeek,*labelDate;
    int currentPage;
}

@property (nonatomic,strong) NSMutableArray *articlesArray;
@property (nonatomic,assign) id <GolfFriendViewDelegate> delegate;
@property (nonatomic,strong) NSString *hostUserId;

- (void)refreshContent;//下拉刷新内容
- (void)loadMoreContent;//上拉加载更多内容

//输入nil，则默认为articlesArray
- (float)getTableViewHeightWithDataArray:(NSArray*)_arr;

- (IBAction)btnAddNewArticle:(id)sender;

@end
